<div class="conceptos view">
<h2><?php  echo __('Concepto');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('De Descripcion'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['de_descripcion']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('St Concepto'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['st_concepto']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Tp Impuesto'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['tp_impuesto']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Activo'); ?></dt>
		<dd>
			<?php echo h($concepto['Concepto']['activo']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Concepto'), array('action' => 'edit', $concepto['Concepto']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Borrar Concepto'), array('action' => 'delete', $concepto['Concepto']['id']), null, __('Are you sure you want to delete # %s?', $concepto['Concepto']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Conceptos'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Agregar Concepto'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Facturas'), array('controller' => 'facturas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Agregar Factura'), array('controller' => 'facturas', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Relacion con Facturas');?></h3>
	<?php if (!empty($concepto['Factura'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Establecimiento Id'); ?></th>
		<th><?php echo __('Nu Factura'); ?></th>
		<th><?php echo __('Nu Reserva'); ?></th>
		<th><?php echo __('Tp Factura'); ?></th>
		<th><?php echo __('Fe Emision'); ?></th>
		<th><?php echo __('Hr Emision'); ?></th>
		<th><?php echo __('St Factura'); ?></th>
		<th><?php echo __('Fe Status'); ?></th>
		<th><?php echo __('Cd Nacion'); ?></th>
		<th><?php echo __('Nu Rif'); ?></th>
		<th><?php echo __('Nm Razon Social'); ?></th>
		<th><?php echo __('Nm Dirreccion'); ?></th>
		<th><?php echo __('Nu Telefono'); ?></th>
		<th><?php echo __('Cd Usuario'); ?></th>
		<th><?php echo __('Mt A Pagar'); ?></th>
		<th><?php echo __('Mt Exento'); ?></th>
		<th><?php echo __('Ba Imponible'); ?></th>
		<th><?php echo __('Mt Iva'); ?></th>
		<th><?php echo __('Mt Pagado'); ?></th>
		<th><?php echo __('Mt Cambio'); ?></th>
		<th><?php echo __('De Observaciones'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Activo'); ?></th>
		<th class="actions"><?php echo __('Acciones');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($concepto['Factura'] as $factura): ?>
		<tr>
			<td><?php echo $factura['id'];?></td>
			<td><?php echo $factura['establecimiento_id'];?></td>
			<td><?php echo $factura['nu_factura'];?></td>
			<td><?php echo $factura['nu_reserva'];?></td>
			<td><?php echo $factura['tp_factura'];?></td>
			<td><?php echo $factura['fe_emision'];?></td>
			<td><?php echo $factura['hr_emision'];?></td>
			<td><?php echo $factura['st_factura'];?></td>
			<td><?php echo $factura['fe_status'];?></td>
			<td><?php echo $factura['cd_nacion'];?></td>
			<td><?php echo $factura['nu_rif'];?></td>
			<td><?php echo $factura['nm_razon_social'];?></td>
			<td><?php echo $factura['nm_dirreccion'];?></td>
			<td><?php echo $factura['nu_telefono'];?></td>
			<td><?php echo $factura['cd_usuario'];?></td>
			<td><?php echo $factura['mt_a_pagar'];?></td>
			<td><?php echo $factura['mt_exento'];?></td>
			<td><?php echo $factura['ba_imponible'];?></td>
			<td><?php echo $factura['mt_iva'];?></td>
			<td><?php echo $factura['mt_pagado'];?></td>
			<td><?php echo $factura['mt_cambio'];?></td>
			<td><?php echo $factura['de_observaciones'];?></td>
			<td><?php echo $factura['created'];?></td>
			<td><?php echo $factura['modified'];?></td>
			<td><?php echo $factura['activo'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Ver'), array('controller' => 'facturas', 'action' => 'view', $factura['id'])); ?>
				<?php echo $this->Html->link(__('Editar'), array('controller' => 'facturas', 'action' => 'edit', $factura['id'])); ?>
				<?php echo $this->Form->postLink(__('Borrar'), array('controller' => 'facturas', 'action' => 'delete', $factura['id']), null, __('Are you sure you want to delete # %s?', $factura['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Agregar Factura'), array('controller' => 'facturas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
